package com.weijianhuawen.wjblog.web.controller;

import com.weijianhuawen.wjblog.common.aspect.ApiOperationLog;
import com.weijianhuawen.wjblog.common.utils.PageResponse;
import com.weijianhuawen.wjblog.web.mode.vo.archive.FindArchiveArticlePageListReqVo;
import com.weijianhuawen.wjblog.web.service.ArchiveService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @version: java version 8
 * @Author: weijianhuawen
 * @description:
 * @date: 2024-10-29 23:15
 */

@RestController
@RequestMapping("/archive")
@Api(tags = "文章归档")
public class ArchiveController {
    @Autowired
    private ArchiveService archiveService;

    @PostMapping("/list")
    @ApiOperation(value = "获取文章归档分页数据")
    @ApiOperationLog(description = "获取文章归档分页数据")
    public PageResponse findArchiveArticlePageList(@RequestBody FindArchiveArticlePageListReqVo vo) {
        return archiveService.findArchivePageList(vo);
    }
}
